<?php

use Nette\Application\Presenter,
	Nette\Environment;


abstract class BasePresenter extends Presenter
{
	public $oldLayoutMode = TRUE;
	public $translations = array();

	protected function beforeRender()
	{
		$this->getSession()->start();
		$user = $this->getUser();
		$this->template->user = $user->isLoggedIn() ? $user->getIdentity() : NULL;

	}
	
	protected function startup(){
		parent::startup();
		
	}

}
